Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext


~Judy Opkroakol 7.Jul.03 01:45 PM a Web browser
General All Releases All Platforms


I have an agent that generates a report via rich text that I call on webquerysave event of a report selection form. This code fails when it tries to append a 2nd table using a rich text paragraph style. The log.nsf says Missing RichTextParagraphStyle object. I use this richtextparagraph syle for another table prior to this table that fails to append without error. I then moved the code that defines the table layout before each append table statement in an effort to troubleshoot. No luck. This same code runs in the notesclient fine when I hard code the key$ in the following code:

Dim rtitem As NotesRichTextItem
Dim rtnav As NotesRichTextNavigator
Dim rtt As NotesRichTextTable

Dim rtpStyle As NoptesRichTextParagraphStyle
Dim rtps(1 To 6) As NotesRichTextParagraphStyle

Dim rtpStyle2 As NotesRichTextParagraphStyle
Dim rtps2(1 To 2) As NotesRichTextParagraphStyle

Dim rtpStyle3 As NotesRichTextParagraphStyle
Dim rtps3(1 To 4) As NotesRichTextParagraphStyle
.
.
.
Set rtpStyle = session.CreateRichTextParagraphStyle

If column = 6 Then
rtpStyle.RightMargin = RULER_ONE_INCH * .75
rtpStyle.FirstLineLeftMargin = 0
rtpStyle.LeftMargin = 0
rtpStyle.ALIGNMENT=ALIGN_RIGHT
Else
rtpStyle.RightMargin = RULER_ONE_INCH * .75
rtpStyle.FirstLineLeftMargin = 0
rtpStyle.LeftMargin = 0
rtpStyle.ALIGNMENT=ALIGN_LEFT
End If

Set rtps(column) = rtpStyle
Next

' build cy order table
Call rtitem.AppendTable(1,6,"",RULER_ONE_INCH,rtps)<-- this works without error
.
.
.
.

For column = 1 To 6
Set rtpStyle = session.CreateRichTextParagraphStyle

If column = 6 Then
rtpStyle.RightMargin = RULER_ONE_INCH * .75
rtpStyle.FirstLineLeftMargin = 0
rtpStyle.LeftMargin = 0
rtpStyle.ALIGNMENT=ALIGN_RIGHT
Else
rtpStyle.RightMargin = RULER_ONE_INCH * .75
rtpStyle.FirstLineLeftMargin = 0
rtpStyle.LeftMargin = 0
rtpStyle.ALIGNMENT=ALIGN_LEFT
End If

Set rtps(column) = rtpStyle
Next

Call rtitem.AppendTable(1,6,"",RULER_ONE_INCH,rtps)<--this is where it bombs
Set rtnav=rtitem.CreateNavigator
Call rtnav.FindLastElement(RTELEM_TYPE_TABLE)
.
.
.

The same notesparagraph style that I ued on the table earlier no longer works for some reason and it blows up on the appendtable line. Running this code in the Notes client doesn't have this problem. What is the differencr in running this from the web vs Notes?






4th Repost: Rich Text Item Bug (~Judy Opkroakol... 7.Jul.03)
. . Why not just create a new NotesRich... (~Yentl Quetkrot... 7.Jul.03)
. . . . RE: Why not just create a new Notes... (~Judy Opkroakol... 7.Jul.03)
. . . . . . And you wonder why people don't flo... (~Delores Dwonic... 7.Jul.03)
. . . . . . . . RE: And you wonder why people don't... (~Judy Opkroakol... 8.Jul.03)
. . . . . . . . . . RE: And you wonder why people don't... (~Yentl Quetkrot... 8.Jul.03)
. . . . . . . . . . . . RE: And you wonder why people don't... (~Judy Opkroakol... 10.Jul.03)
. . . . . . . . . . . . . . It might be a really good time to l... (~Mario Cislugon... 10.Jul.03)
. . . . . . . . . . . . . . . . RE: It might be a really good time ... (~Judy Opkroakol... 11.Jul.03)
. . . . . . . . . . . . . . *Ahh, but I know how to do it, and ... (~Yentl Quetkrot... 10.Jul.03)
. . . . . . . . . . . . . . . . RE: *Ahh, but I know how to do it, ... (~Judy Opkroakol... 11.Jul.03)
. . . . . . . . . . . . . . . . . . *I do understand. I've made it work... (~Yentl Quetkrot... 11.Jul.03)
. . . . . . . . . . . . . . . . . . . . God, Ben... re: *I do understand. I... (~Naomi Deskrote... 11.Jul.03)
. . . . . . . . . . . . . . . . . . . . . . He uses both 12.217.240.29 and 216.... (~Yentl Quetkrot... 11.Jul.03)
. . . . . . . . . . LOL (~Delores Dwonic... 8.Jul.03)
. . . . . . RE: Why not just create a new Notes... (~Naomi Deskrote... 7.Jul.03)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS